home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
1833
/
1833.xpi
/
chrome
/
yoono.jar
/
content
/
yoono
/
bookmarks
/
prompthistory.xul
< prev
Wrap
Extensible Markup Language
|
2009-12-16
|
2KB
|
63 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE window SYSTEM "chrome://yoono/locale/bookmarksdlg.dtd">
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<dialog
id="yoono-dialog-prompthistory"
title="&yoono.prompthistory.title;"
orient="vertical"
buttons="accept,cancel"
ondialogaccept="return onAcceptDialog()"
ondialogcancel="return onCancelDialog()"
onload="onInitDialog()"
persist="screenX screenY"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript">
<![CDATA[
var args;
var textbox;
var bundle;
function onInitDialog()
{
textbox = document.getElementById("textbox");
bundle = document.getElementById("bundle");
args = window.arguments[0];
}
function onCancelDialog()
{
args.cancel = true;
}
function onAcceptDialog()
{
var value = textbox.value;
if(String(value).match(/\d\d?/)) {
value = Number(value);
if(value > 1) {
args.cancel = false;
args.value = value;
return true;
}
}
alert(bundle.getString("maxhistory.warning"));
return false;
}
]]>
</script>
<stringbundle id="bundle" src="chrome://yoono/locale/bookmarks.properties"/>
<hbox align="center">
<label value="&yoono.prompthistory.label;"/>
<textbox id="textbox" style="width:3em"/>
</hbox>
</dialog>